package logic;

import org.junit.*;

import affd.logic.Sentence;
import affd.logic.Token;
import affd.logic.Token.Type;
import static org.junit.Assert.*;

public class SentenceTest {

	@Test 
	public void test_addToken() {
		Token t = new Token("kala", Type.WORD);
		Sentence s = new Sentence();
		s.addToken(t);
		assertEquals(true, s.getTokens().contains(t));
		assertEquals(s, t.getParent());
	}
	
}
